home *** CD-ROM | disk | FTP | other *** search
- Path: dawn.mmm.com!news
- From: kjhopps@mmm.com (Kevin J Hopps)
- Newsgroups: comp.lang.c++
- Subject: Re: novice question on copy constru
- Date: 19 Feb 1996 20:06:13 GMT
- Organization: 3M - St. Paul, MN 55144-1000 US
- Message-ID: <4gal7l$4q7@dawn.mmm.com>
- References: <AL9SoXAZfTHxEwVN@mics.demon.co.uk> <4g0et8$3h6$2@mhadg.production.compuserve.com>
- Reply-To: kjhopps@mmm.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- John Puopolo (102262.612@CompuServe.COM) wrote:
- > It is recommended that you always supply:
-
- Always question absolute statements :-)
-
- > A ctor
- > A dtor (virtual if approp)
- > A copy ctor
- > An assignment (=) operator
-
- > For every non-trivial class that you implement. Leave nothing to
- > chance and you'll have far fewer headaches. Been there... done
- > that.
-
- I was about to disagree, citing classes for which I want copying to be
- illegal. But then I realized that I still include these operations --
- I just make the copy operations private.
-
- Maybe I'll have to rethink my absolute rejection of absolute statements :-)
- --
- Kevin J. Hopps e-mail: kjhopps@mmm.com
- 3M Company phone: (612) 737-4643
- 3M Center, Bldg. 235-2D-57 fax: (612) 737-2700
- St. Paul, MN 55144-1000 Opinions are my own. I don't speak for 3M.
- But 3M speaks for me -- I did not write the following line:
-
- Opinions expressed herein are my own and may not represent those of 3M.
-